<?php
class Pager extends Object
{
	public $in;
	public $out;
	public $template;
	public $template_path;

	public function __construct($path = ""){
		parent::__construct();
		if(empty($path))return;
		else
		$this->setTemplate($path);
	}

	private function setTemplate($path){
		if(is_file($path))$this->template_path = $path;
		else{
			$this->template_path = "";
			throw exception;
			die();
		}
	}

	public function make(){
		if(!empty($this->template_path))
		$this->template = simplexml_load_file($this->template_path);
		else{
			throw exception;
			die("error template");
		}
		$data = DB::getData($this->template["source"],$this->template["loopcount"]);
	}
}


?>